home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / owlbwcc.zip / BWRPOINT.RC < prev    next >
Text File  |  1992-02-02  |  3KB  |  57 lines

  1. /********************************************************************/
  2. /* BWRPOINT.RC defines a simple Borland Windows Custom Control      */
  3. /* Dialog Box that can be used as the main window.                  */
  4. /* Notice the CLASS "BORDLG" to activate the metalic background     */
  5. /* Also notice the special "Borshade" Control and BorCheck controls */
  6. /* Notice the order of the controls Borshade, then 4 radio buttons, */
  7. /* then a Borshade and 4 more radio buttons.  Also, notice that the */
  8. /* first radio button in each group has the Tab stop set.  The order*/
  9. /* and the tabstop are important in order to make the TAB and the   */
  10. /* arrow keys function correctly.                                   */
  11. /********************************************************************/
  12.  
  13. #include "windows.h"
  14. #include "bwcc.h"
  15. #include "bwrpoint.h"        // Equates for radio buttons
  16.  
  17. MAINWINDOWDIALOG DIALOG 22, 14, 126, 161
  18. CAPTION "Borland Radio Buttons"
  19. CLASS "BORDLG"
  20. STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
  21. BEGIN
  22.     CONTROL "      Unit #12", 103, "BorShade", BSS_GROUP | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 60, 54, 66
  23.     CONTROL "Test", IDB_UNIT12_TEST, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 10, 72, 32, 10
  24.     CONTROL "Phase 1", IDB_UNIT12_PHASE1, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 10, 84, 42, 10
  25.     CONTROL "Phase 2", IDB_UNIT12_PHASE2, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 10, 96, 36, 10
  26.     CONTROL "Phase 3", IDB_UNIT12_PHASE3, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 10, 108, 36, 10
  27.     CONTROL "       Unit #13", 103, "BorShade", BSS_GROUP | WS_CHILD | WS_VISIBLE | WS_GROUP, 66, 60, 54, 66
  28.     CONTROL "Test", IDB_UNIT13_TEST, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 72, 72, 32, 10
  29.     CONTROL "Phase 1", IDB_UNIT13_PHASE1, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 72, 84, 42, 10
  30.     CONTROL "Phase 2", IDB_UNIT13_PHASE2, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 72, 96, 42, 10
  31.     CONTROL "Phase 3", IDB_UNIT13_PHASE3, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 72, 108, 42, 10
  32.     CONTROL "", 102, "BorShade", 2 | WS_CHILD | WS_VISIBLE, 0, 54, 126, 1
  33.     CONTROL "", 101, "BorShade", BSS_GROUP | WS_CHILD | WS_VISIBLE, 6, 6, 114, 42
  34.     CTEXT "Pointers to Radio Buttons", -1, 12, 12, 102, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  35.     CTEXT "Can be used to make", -1, 12, 24, 102, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  36.     CTEXT "Button processing easier.", -1, 12, 36, 102, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
  37.     CONTROL "Button", IDCANCEL, "BorBtn", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 18, 138, 32, 20
  38.     CONTROL "Button", IDOK, "BorBtn", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 78, 138, 32, 20
  39.     CONTROL "", 104, "BorShade", 2 | WS_CHILD | WS_VISIBLE, 0, 132, 126, 1
  40. END
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.